import { request } from './request'
var api = require('@/js/api.js')

export function getIndexData() {
    return request(api.IndexUrl)
}

export function getBanners(id) {
    return request(api.CatalogCurrent + '?id=' + id)
}

export function getCateData(id) {
    return request(api.GoodsList + '?categoryId=' + id)
}

// export function getCookData() {
//     return request(api.GoodsList + '?categoryId=1005001')
// }

// export function getFoodData() {
//     return request(api.GoodsList + '?categoryId=1005002')
// }

// export function getPartsData() {
//     return request(api.GoodsList + '?categoryId=1008000')
// }

// export function getClothesData() {
//     return request(api.GoodsList + '?categoryId=1010000')
// }

// export function getBabyData() {
//     return request(api.GoodsList + '?categoryId=1011000')
// }

// export function getGroceriesData() {
//     return request(api.GoodsList + '?categoryId=1012000')
// }

// export function getWashData() {
//     return request(api.GoodsList + '?categoryId=1013001')
// }

// export function getInterestsData() {
//     return request(api.GoodsList + '?categoryId=1019000')
// }